<template>
  <div class="contain">
    <a-layout>
      <!--  首页头部    -->
      <a-layout-header>
        <index-header></index-header>
      </a-layout-header>
      <div class="con-content">
        <div class="nav-side">
          <navigation></navigation>
          <div>
            <router-view></router-view>
          </div>
        </div>
      </div>
      <!--  页脚    -->
      <a-layout-footer>
        <index-footer></index-footer>
      </a-layout-footer>
    </a-layout>
<!--    <header-bar></header-bar>-->
<!--    <div class="con-content">-->
<!--      <div class="nav-side">-->
<!--        <navigation></navigation>-->
<!--        <div>-->
<!--          <router-view></router-view>-->
<!--        </div>-->
<!--      </div>-->
<!--    </div>-->
  </div>
</template>

<script>
  import IndexHeader from "./IndexHeader";
  import IndexFooter from "./IndexFooter";
  import Navigation from "./Navigation";
  // import HeaderBar from "./HeaderBar";
  export default {
    name: "MainContent.vue",
    components: {
      Navigation,
      // HeaderBar,
      IndexHeader,
      IndexFooter
    }
  }
</script>

<style scoped>
  .contain{
    width: 100%;
    /*height: 100%;*/
    margin-top: 0px;
    /*background-color: red;*/
  }
  .nav-side{
    width: 1280px;
    background: #f6f6f6;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }
  .con-content{
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-top: 20px;
    /*height: 100%;*/
  }
</style>